<?php


namespace app\api\controller;


use think\Controller;

class Token extends Controller
{
    public function getToken(){
        $timetoday = strtotime(date("Y-m-d H:i",time()));
        $token = md5($timetoday.'xinglong');
        $res['data']['code'] = 1;
        $res['data']['list'] = $token;
        $res['status'] = 200;
        echo json_encode($res);
    }
}